cmake_minimum_required(VERSION 3.5.0)
project(ls_app)

set(CMAKE_CXX_STANDARD 17)

add_subdirectory(faker)

function(set_include_dir libs dir)
    foreach(lib IN LISTS libs)
        target_include_directories(${lib}_engine PUBLIC ${dir})
        target_include_directories(${lib}_launcher PUBLIC ${dir})
    endforeach()
endfunction()

set(app_libs 
    faker
)
set(scene_lib
    faker_scene
)

set(basic_lib 
    faker_basic    
)

set(basic_libs 
    faker_basic_transform
    faker_basic_uid
    faker_basic_info
)

set(render_lib
    faker_render
)

set(render_libs

    faker_render_mesh_box
    faker_render_mesh_filter
    faker_render_mesh_skinned
    faker_render_material_simpleColor

    # faker_render_camera_firstview 
    # faker_render_camera_ortho 
    # faker_render_camera_controller

    # faker_render_light_spot
    # faker_render_light_direct
    # faker_render_light_point

    # faker_render_skybox_sixImage

    # faker_render_animation_single
    # faker_render_animation_animator
)


# set(physics_libs
#     faker_physics
#     faker_physics_basic_rigidbody
#     faker_physics_basic_collider
    
#     faker_physics_rp3d_rigidbody
#     faker_physics_rp3d_joint
#     faker_physics_rp3d_collider
# )

# set(audio_libs 
#     faker_audio
#     faker_audio_environment_common
#     faker_audio_source_common
#     faker_audio_listener_common
# )


set_include_dir("${app_libs}" ./)
set_include_dir("${scene_lib}" ./)

set_include_dir("${basic_lib}" ./)
set_include_dir("${basic_libs}" ./)
set_include_dir("${render_lib}" ./)
set_include_dir("${render_libs}" ./)
# set_include_dir("${physics_libs}" ./)
# set_include_dir("${audio_libs}" ./)
target_include_directories(faker_engine_ui PUBLIC ./)



